


import 'package:flutter/material.dart';
import 'package:flutter_redux/flutter_redux.dart';
import 'package:little_game/pages/test.dart';
import 'package:little_game/redux/GlobalStore.dart';

import 'loading.dart';

class Index extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return StoreBuilder<GlobalStore>(
      builder: (BuildContext c,store){
        if(store.state.init){
          return Test(
            xi: 4,
            yi: 4,
            iconList: <Widget>[
              Icon(Icons.threesixty),
              Icon(Icons.map),
              Icon(Icons.extension),
              Icon(Icons.store),
              Icon(Icons.calendar_today),
              Icon(Icons.input),
              Icon(Icons.print),
              Icon(Icons.list)
            ],
          );
        };
        return Load();
      },
    );
  }

}